<template>
  <a-result
      :status="type"
  >
    <template #subTitle>
      <div v-if="type === 'error'" >
<!--        可能的操作 <a @click="$router.push({path:'/tail/truckDeliver/form',query:{id:id}})">重新询价 ></a>-->
      </div>
      <br>
      <a-alert style="width:30%;margin: 10px auto;text-align: left" v-if="type === 'error'" :type="type" message="操作失败，订单不存在或已完成下单，请确认后再提交。" banner />
      <a-alert v-if="type === 'success'" style="width:120px;margin: 10px auto;text-align: left" :type="type" message="下单成功" banner />
      <br>
      <a-button @click="$router.push('/tail/truckDeliver')">返回</a-button>
    </template>
  </a-result>
</template>
<script setup>
import { useRoute } from 'vue-router'
const route = useRoute()
const {id,type} = route.query
</script>

<style scoped>

</style>
